<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="include :: header"></head>
<link rel="stylesheet" href="/css/common/edit.css">
<body>
    <form class="layui-form">
        <input type="hidden" name="id" th:value="${admin.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">id</label>
            <label class="layui-form-label" style="text-align: left;" th:text="${admin.id}"></label>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="name" th:value="${admin.name}"
                       style="width: 120px;"  lay-verify="required" placeholder="请填写">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="password" th:value="${admin.password}"
                       style="width: 120px;"  lay-verify="required" placeholder="请填写">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属角色</label>
            <div class="layui-input-block">
                <div id="roleTree" style="width: 200px;"></div>
                <input type="hidden" name="roleId" th:value="${adminRoleId}"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block" style="width: 120px;">
                <select name="markStatus">
                    <option th:each="item : ${markStatusData}"
                            th:value="${item.value}" th:text="${item.key}"
                            th:selected="${item.value} == ${admin.markStatus}">
                    </option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-fixbar btn-fixbar-box">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit lay-filter="btn-submit">提交</button>
                <button type="button" class="layui-btn layui-btn-primary" lay-on="close">
                    <i class="layui-icon layui-icon-close"></i>关闭
                </button>
            </div>
        </div>
    </form>
</body>
<div th:include="include :: footer"></div>
<script src="/js/system/admin/edit.js?v=0.1"></script>
</html>